package com.dreamoo.common.pojo.entity;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 梦境实体类
 * 
 * @author dreamoo
 */
@Data
@TableName("dream")
public class Dream implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 梦境ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    
    /**
     * 梦境标题
     */
    @TableField("title")
    private String title;
    
    /**
     * 梦境内容
     */
    @TableField("content")
    private String content;
    
    /**
     * 情绪标签
     */
    @TableField("emotion_tag")
    private Integer emotionTag;
    
    /**
     * 是否公开：0-私密，1-公开
     */
    @TableField("is_public")
    private Boolean isPublic;
    
    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    /**
     * 更新时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;
    
    /**
     * 做梦日期
     */
    @TableField("dream_date")
    private LocalDate dreamDate;
    
    /**
     * 梦境标签，多个标签用逗号分隔
     */
    @TableField("tags")
    private String tags;

    /**
     * 解析主要内容
     */
    @TableField("analysis")
    private String analysis;

    @TableField("image_id")
    private Long imageId;
} 